﻿using System;
using System.Collections.Generic;
using System.ComponentModel;

namespace SapaFinance.Domain.Model
{
    public class CFO : AbstractEntity
    {
        public virtual string Name { get; set; }
        public virtual ICollection<Corporation> Corporations { get; set; }

        protected CFO()
        {
            //Corporations = new List<Corporation>();
        }
        public CFO(string name)
            : this()
        {
            Name = name;
        }

        //public virtual void AddCorporation(Corporation corporation)
        //{
        //    if (!Corporations.Contains(corporation))
        //    {
        //        Corporations.Add(corporation);
        //    }
        //}
        //public virtual bool RemoveCorporation(Corporation corporation)
        //{
        //    return Corporations.Remove(corporation);
        //}
    }
}